<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>影院管理系统</title>
  <link rel="stylesheet" href="/css/layui.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a href="">主页</a></li>
      <li class="layui-nav-item"><a href="">用户</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;">其它系统</a>
        <dl class="layui-nav-child">
          <dd><a href="">邮件管理</a></dd>
          <dd><a href="">消息管理</a></dd>
          <dd><a href="">授权管理</a></dd>
        </dl>
      </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          <dd><a href="">安全设置</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="javascript:void (0)" id="tuichu">退出</a></li>
    </ul>
  </div>

  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item ">
          <a class="" href="#">订单统计</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:void(0)" class="movieTicket">电影票查询</a></dd>
            <dd><a href="javascript:void(0)" class="cdyTicket">商品查询</a></dd>
          </dl>
        </li>

        <li class="layui-nav-item ">
          <a class="" href="#">商品管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:toJump('/commodity/query')">查询商品</a></dd>
            <dd><a href="javascript:toJump('/commodity/add')">添加商品</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item ">
          <a class="" href="#">票房统计(本影城)</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:toJump('/order/day')">在播影片当天票房</a></dd>
            <dd><a href="javascript:toJump('/order/week')">在播影片本周票房</a></dd>
            <dd><a href="javascript:toJump('/order/month')">在播影片本月票房</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item ">
          <a class="" href="#">活动</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:toJump('/sales/querySales')">电影/商品购买活动</a></dd>
            <dd><a href="javascript:toJump('/sales/saveSales')">增加购买活动</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item ">
          <a class="" href="#">购/退服务</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:toJump('/buy/buyTicket')">购买电影票</a></dd>
            <dd><a href="javascript:toJump('/buy/buyCommodity')">购买商品</a></dd>
            <dd><a href="javascript:toJump('/buy/returnTicket')">退票</a></dd>
            <dd><a href="javascript:toJump('/buy/returnCommodity')">退商品</a></dd>
          </dl>
        </li>

        <li class="layui-nav-item ">
          <a class="" href="#">排片</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:toJump('/films/queryCinema')">排片</a></dd>
            <dd><a href="javascript:toJump('/films/queryDay')" >查询当天排片信息</a></dd>
            <dd><a href="javascript:toJump('/films/queryWeek')">查询一周排片信息</a></dd>
            <dd><a href="javascript:toJump('/films/queryAll')">查询所有排片信息</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="#">员工信息管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:void (0)" id="geren">个人信息查询</a></dd>
            <dd><a href="javascript:toJump('/user/query')">员工信息查询</a></dd>
            <dd><a href="javascript:toJump('/user/add')">新员工入职</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="#">影厅管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:toJump('/cinema/query')">查看影厅信息</a></dd>
            <dd><a href="javascript:toJump('/cinema/add')">添加影厅</a></dd>
          </dl>
        </li>


        <li class="layui-nav-item">
          <a href="#">影片管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:toJump('/movie/query1')">查询在映电影</a></dd>
            <dd><a href="javascript:toJump('/movie/add')">添加电影</a></dd>
            <dd><a href="javascript:toJump('/movie/query2')">查询下架电影</a></dd>
          </dl>
        </li>

      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;" id="mainframe">内容主体区域</div>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © layui.com - 1组
  </div>
</div>
<script src="/js/layui.js"></script>
<script src="/js/layui.all.js"></script>
<script src="/ajax/jquery-1.8.3.js"></script>
<script src="/ajax/jump.js"></script>
<script th:inline="javascript">

  $(".cdyTicket").bind("click",function () {
    var id = [[${loginInfo.id}]];
    toJump("/order/queryCdy","&id="+id);
  })

  $(".movieTicket").bind("click",function () {
    var id = [[${loginInfo.id}]];
    toJump("/order/query","&id="+id);
  })

  $("#tuichu").bind("click",function () {
    if(!confirm("确定退出吗")) return
    location.href = "/user/logoff";
  })
  $("#geren").bind("click",function () {
    var id = [[${loginInfo.id}]];
    toJump("/user/unique","&id="+id);
  })
layui.use('element', function(){
  var element = layui.element;
});
</script>
</body>
</html>